<!-- 版权信息 -->
#macro (copyright)
&copy;2014-2015 xxxx All rights reserved 保留所有权利
#end
<!-- 分页条 -->
#macro (pagination)
#end
<!-- 分页条End -->
<!-- 页面验证模板 -->
#macro( getErrorCode $objectName $field)
	#set($errors = $springMacroRequestContext.getErrors($objectName))
	#if($errors && $errors.fieldErrors && $errors.fieldErrors.size()>0)
		#foreach($e in $errors.fieldErrors)
			#if("$!field"=="$e.field")
				$e.code
			#end
		#end
	#end
#end
<!-- 页面验证模板End -->
#macro( style_index)
<link id="mainStyle" href="$!basePath/framework/css/easyui/$!theme/easyui.css" rel="stylesheet" type="text/css"/>
<link href="$!basePath/framework/css/easyui/icon.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.ui.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.ui-lang-zh_CN.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.common.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.validate.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/config/config-default.js"></script>
<!--上传模块-->
<link href="$!basePath/framework/css/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="$!basePath/framework/js/common/jquery.uploadify.js"></script>
<!-- cookie模块 -->
<script type="text/javascript" src="$!basePath/framework/js/common/zframe.cookie.js"></script>
<!-- 扩展插件 -->
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.windows.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.dialog.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.notiy.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.json.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.linkbutton.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.util.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.treegrid.util.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.string.js"></script>
#end
#macro( style)
<link id="mainStyle" href="$!basePath/framework/css/easyui/$!theme/easyui.css" rel="stylesheet" type="text/css"/>
<link href="$!basePath/framework/css/easyui/icon.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.ui.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.ui-lang-zh_CN.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.common.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/zframe.validate.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/config/config-default.js"></script>
<!--上传模块-->
<link href="$!basePath/framework/css/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="$!basePath/framework/js/common/jquery.uploadify.js"></script>
<!-- cookie模块 -->
<script type="text/javascript" src="$!basePath/framework/js/common/zframe.cookie.js"></script>
<!-- 扩展插件 -->
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.windows.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.dialog.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.notiy.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.json.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.linkbutton.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.util.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.treegrid.util.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.string.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.button.prrmissioned.js"></script>
$!ButtonPrrmission
#end
#macro( juiStyle)
<link href="$!basePath/framework/css/aristo/base.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery-ui-1.9.0.min.js"></script>
#end
#macro( tipStyle)
<!-- 提示组件 -->
<link href="$!basePath/framework/css/tip/tip-yellow/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/common/jquery.poshytip.js"></script>
#end
#macro( ueditor)
<!-- 百度编辑器 -->
<script type="text/javascript">
 	if(typeof UE == "undefined"){
		jQuery("head").append("<script id=\"js_ueditor\" type=\"text/javascript\" src=\"$!basePath/framework/application/ueditor/ueditor.all.min.js\"><\/script>");
		jQuery("head").append("<script id=\"js_ueditor_config\" type=\"text/javascript\" src=\"$!basePath/framework/application/ueditor/ueditor.config.js\"><\/script>");
	}else{
		for(var id in UE.getInstances()){
			UE.delEditor(id);
		}
	}
</script>
#end
#macro( edatagrid)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.edatagrid.js"></script>
#end
#macro( tree)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.tree.js"></script>
#end
#macro( etree)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.etree.js"></script>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.etree.lang.js"></script>
#end
#macro( rtl)
<link href="$!basePath/framework/css/easyui/rtl.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.rtl.js"></script>
#end
#macro( datagrid_dnd)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.dnd.js"></script>
#end
#macro( treegrid_dnd)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.treegrid.dnd.js"></script>
#end
#macro( datagrid_filter)
<script type="text/javascript" src="$!basePath/framework/js/core/plugin/zframe.datagrid.filter.js"></script>
#end
#macro( intro)
<!-- IntroJs -->
<link href="$!basePath/framework/application/intro/introjs.min.css" rel="stylesheet">
<script type="text/javascript" src="$!basePath/framework/application/intro/intro.min.js"></script>
#end
#macro( highcharts)
<script type="text/javascript" src="$!basePath/framework/application/highcharts/js/highcharts.js"></script>
<script type="text/javascript" src="$!basePath/framework/application/highcharts/js/modules/exporting.js"></script>
#end
#macro( setSelectValue $win $name $value)
<script type="text/javascript">
	var win = new Windows("$win");
	var oSelect = win.find("select[name='$name']");
	try{
		oSelect.val("$value");
	}catch(e){
		top.Dialog.alert("错误","脚本错误:"+e,"error");
	}
</script>
#end
#macro( setRadioValue $win $name $value)
<script type="text/javascript">
	var win = new Windows("$win");
	var oRadio = win.find("input[type='radio'][name='$name'][value='$value']");
	try{
		oRadio.attr("checked","checked");
	}catch(e){
		top.Dialog.alert("错误","脚本错误:"+e,"error");
	}
</script>
#end
#macro( substring $value $len)
	#if($value.length()<=$len)
		$value
	#else
		$value.substring(0,$len)...
	#end
#end